package com.sykj.bean;

import java.io.Serializable;
import java.sql.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
@TableName("flight")
public class Flight  implements Serializable {
	@TableId(value="flightID",type=IdType.AUTO)
    private Integer flightID;
	@TableField("startCityID")
    private Integer StartCityID;
	@TableField("endCityID")
    private Integer endCityID;  
	@TableField("startTime")
    private String startTime;
    
    public String getStartTime() {
		return startTime;
	}

	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}


	//多表查询时起飞城市和到达城市
    @TableField(exist=false) //数据库中没哟该字段,忽略该字段
    private String startCityName;
    @TableField(exist=false)
    private String endCityName;
    

   
    public String getStartCityName() {
		return startCityName;
	}

	public void setStartCityName(String startCityName) {
		this.startCityName = startCityName;
	}

	public String getEndCityName() {
		return endCityName;
	}

	public void setEndCityName(String endCityName) {
		this.endCityName = endCityName;
	}

	public Integer getFlightID() {
        return flightID;
    }

    public void setFlightID(Integer flightID) {
        this.flightID = flightID;
    }

    public Integer getStartCityID() {
        return StartCityID;
    }

    public void setStartCityID(Integer startCityID) {
        StartCityID = startCityID;
    }

    public Integer getEndCityID() {
        return endCityID;
    }

    public void setEndCityID(Integer endCityID) {
        this.endCityID = endCityID;
    }

    
	@Override
	public String toString() {
		return "Flight [flightID=" + flightID + ", StartCityID=" + StartCityID + ", endCityID=" + endCityID
				+ ", StartTime=" + startTime + ", startCityName=" + startCityName + ", endCityName=" + endCityName
				+ "]";
	}

    
   
}
